﻿@model List<MVC4App.Areas.Administrators.Models.SiteModel>
@if (Model != null)
{
    <ul>
        @foreach (var item in Model)
        {
            <li>
                <a rel="" href="/a/paged/@item.Controller/@item.Id" class="no-follow" onclick="generalUrl('/a/@item.Controller/@item.Id')">@item.Title</a>
                @*@Ajax.NavigationActionLink(item.Title, "/a/paged/" + item.Controller+ "/" + item.Id, new AjaxOptions() { InsertionMode = InsertionMode.Replace, UpdateTargetId = "contents", OnSuccess = "loadContent", OnComplete = "generalUrl('/a/"+@item.Controller+"/" + @item.Id + "')" })*@
                @{
                    Html.RenderAction("SubNavigation", new { id = item.Id });
                }
            </li>    
        }
    </ul>
}
